package com.kl.service;

import com.kl.em.Result;
import com.kl.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kl.entity.Staff;

import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2021-10-29
 */
public interface IStaffService extends IService<Staff> {

    Staff selectByName(String name);

    Result addInfo(Staff staff, Integer[] rids)throws UnsupportedEncodingException, NoSuchAlgorithmException;

    Staff findStaffById(Long id);

    List<Role> findRole();

    List<Integer> findStaffRoleById(Long id);

    Result updateInfo(Staff staff, Integer[] rids);

    Result deleteStaffById(Long id);

    List<Staff> getInfo();

    List<Long> selectBySiteIdList(List<Long> siteIdList);

    Staff selectName(String username);
}
